import request from '@/utils/request'

export default {
  // 查询列表
  list(data) {
    return request({
      url: '/hosp/hospitalSet/list',
      method: 'post',
      data:data
    })
  },
  findById(id) {
    return request({
      url: `/hosp/hospitalSet/findById/${id}`,
      method: 'get'
    })
  },
  updateStatus(data) {
    return request({
      url: '/hosp/hospitalSet/update',
      method: 'post',
      data:data
    })
  },
  saveOrUpdate(data){
    return request({
      url: '/hosp/hospitalSet/saveOrUpdate',
      method: 'post',
      data:data
    })
  },
  delById(id){
    return request({
      url: `/hosp/hospitalSet/delById/${id}`,
      method: 'delete'
    })
  }

}
